<%@ Page Language="C#" AutoEventWireup="true" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" 
	 MasterPageFile="~/App_ThemeMasters/NoStyle/popUpTwoColumnLayout.Master" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<asp:Content ContentPlaceHolderID="title" ID="c01" runat="server">
	<swf:BizProc ID="settings" runat="server" FactoryName="mediaCache">
	</swf:BizProc>

	 <swf:BizProc runat="server" ID="adl" factoryName="mediaDirectoryLibrary">
		<State entireTree="false" EditModeSessionKey="GlobalEdit" includeSelf="true" />
		<ParentBizProc id="settings" fieldName="id" dataId="pid" />
	</swf:BizProc>
	<swf:BizProc runat="server" ID="ail" FactoryName="mediaImagesLibrary">
		<State multipleSelect="true" />
		<ParentBizProc id="adl" fieldName="keyName" dataId="pid" />
		<ParentBizProc id="settings" fieldName="id" dataId="cid" />
	</swf:BizProc>
	<swf:BizProc runat="server" ID="selected" FactoryName="tempBizObjListBuilder">
		<ParentBizProc id="ail" dataId="parent" />
	</swf:BizProc>
	<swf:BizProc runat="server" ID="ap" FactoryName="actionParam">
		<ParentBizProc id="selected" fieldName="_list" dataId="pid" />
	</swf:BizProc>
	
 <div class="left"><h1><asp:Label ID="ImgCacheLibLbl" runat="server" >Image Cache Library</asp:Label></h1></div>
</asp:Content>

<asp:Content ContentPlaceHolderID="leftContent" ID="c02" runat="server">
	<asp:Label runat="server" ID="cachlistLbl" Text="Company Image Caches:" />
	<snc:Combo ID="caches" runat="server" ParentBizProcIds="settings" DataTextField="name" DataValueField="id">
		<Columns>
			<ntb:BoundColumn DataField="id" Visible="false" />
			<ntb:BoundColumn DataField="name" HeaderText="Name" width="200" />
		</Columns>
	</snc:Combo>
	<snc:Grid ID="articleList1Display" runat="server" Width="273px" Height="425px" Resizable="Both" ShowToolbar="false" ParentBizProcIds="adl" Mode="LiveScrolling">
		<Columns>
			<ntb:KeyColumn DataField="keyName"  />
			<ntb:BoundColumn DataField="depthName" HeaderText="Name" width="200" />
			<ntb:NumberColumn DataField="fileCount" HeaderText="Num Files" width="56" Mask="#,###" />
			<ntb:BoundColumn DataField="xx" Width="40" />
		</Columns>
	</snc:Grid>
	
		
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="c03" runat="server">
<ntb:TabStrip runat="server" id="tabs" Width="500" Height="600">
	<AutoSize FixedHeightMargin="65" FixedWidthMargin="5" MarginWidthDomId="leftArea" />
	<TabItems>
		<ntb:TabItem NamedId="ta1" Name="Images" width="125" />
		<ntb:TabItem Name="Upload" NavigationUrl="ImageUploadPopupChild.aspx" width="125" />
	</TabItems>
</ntb:TabStrip>
		<div id="ta1">
	        <snc:ComplexBizObjListDisplay runat="server" ID="miImages" 
		        ReadOnlyTemplate="MediaCache.Gui.AspNet.ImagesListDisplay-ArtGen" 
		        ParentBizProcIds="ail">
		        <macros>
			        <Entry name="navLink" type="String">imageviewer.aspx</Entry>
		        </macros>
	        </snc:ComplexBizObjListDisplay>
		</div>
</asp:Content>
<asp:Content ContentPlaceHolderID="buttons" ID="c04" runat="server">
	<div style="float:left;">
		<snc:ActionButton runat="server" ID="updateBtn" Actions="ap.UpdateBizObj,selected.ClearSelection" Text="Save Selected" 
			AfterClientClick="window.returnValue = true;window.close();return false;" /><br />
		<snc:ActionButton runat="server" ID="clearBtn" Actions="selected.ClearSelection" Text="Clear All" />
	</div>
	<div style="float:left;">
        <snc:ComplexBizObjListDisplay runat="server" ID="sbl1" 
	        ReadOnlyTemplate="MediaCache.Gui.AspNet.ImagesListDisplay-ArtGenRemove" 
	        ParentBizProcIds="selected">
        </snc:ComplexBizObjListDisplay>
	</div>
</asp:Content>

